package com.czwx.bee.business.manager.modular.borrow.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Date;

/**
 * @Author:wiki
 * @Date:Create in 2018/7/5 0005 下午 5:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="BorrowDto",description="借款订单-订单模型")
public class BorrowDto {

    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="真实姓名")
    private String realName;

    @ApiModelProperty(value="手机号码")
    private String phone;

    @ApiModelProperty(value="订单编号")
    private String orderNo;

    @ApiModelProperty(value="产品")
    private String prodName;

    @ApiModelProperty(value="借款金额")
    private Long amount;

    @ApiModelProperty(value="期数")
    private Integer timeLimit;

    @ApiModelProperty(value="借款期限")
    private String timeLimitNo;

    @ApiModelProperty(value="实际到账金额(元)")
    private Long realAmount;

    @ApiModelProperty(value="订单生成时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value="综合费用(元)")
    private Long fee;

    @ApiModelProperty(value="应还款日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date repayTime;

    @ApiModelProperty(value="已还期数")
    private Integer periodTotal;

//    @ApiModelProperty(value="注册客户端")
//    private String registerClient;
//
//    @ApiModelProperty(value="注册渠道")
//    private String channelName;

    @ApiModelProperty(value="订单状态")
    private Integer state;

    @ApiModelProperty(value="订单状态(文字)")
    private String stateStr;

    public String getTimeLimitNo() {
        return timeLimit+"期";
    }
}
